package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_SXLX"
 *     
*/
public class DmSxlx implements Serializable {

    /** identifier field */
    private String sxlxDm;

    /** nullable persistent field */
    private String sxlxMc;

    /** full constructor */
    public DmSxlx(String sxlxDm, String sxlxMc) {
        this.sxlxDm = sxlxDm;
        this.sxlxMc = sxlxMc;
    }

    /** default constructor */
    public DmSxlx() {
    }

    /** minimal constructor */
    public DmSxlx(String sxlxDm) {
        this.sxlxDm = sxlxDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SXLX_DM"
     *         
     */
    public String getSxlxDm() {
        return this.sxlxDm;
    }

    public void setSxlxDm(String sxlxDm) {
        this.sxlxDm = sxlxDm;
    }

    /** 
     *            @hibernate.property
     *             column="SXLX_MC"
     *             length="30"
     *         
     */
    public String getSxlxMc() {
        return this.sxlxMc;
    }

    public void setSxlxMc(String sxlxMc) {
        this.sxlxMc = sxlxMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("sxlxDm", getSxlxDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmSxlx) ) return false;
        DmSxlx castOther = (DmSxlx) other;
        return new EqualsBuilder()
            .append(this.getSxlxDm(), castOther.getSxlxDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSxlxDm())
            .toHashCode();
    }

}
